package com.uchiha.nova.core.tool.constant;

/**
 * @author 周林静
 * @Date 2021/4/29 16:28
 * @Version 1.0
 */
public class RoleConstant {

    public static final String ADMINISTRATOR = "administrator";

    public static final String HAS_ROLE_ADMINISTRATOR = "hasRole('" + ADMINISTRATOR + "')";

    public static final String ADMIN = "admin";

    public static final String IOT_ADMIN = "ROLE_Haier_IOT_Admin";

    public static final String IOT_USER = "ROLE_Haier_IOT_User";

    public static final String IOT_SETUP = "ROLE_Haier_IOT_Setup";

    public static final String HAS_ROLE_ADMIN = "hasAnyRole('" + ADMINISTRATOR + "', '" + ADMIN + "')";

    public static final String USER = "user";

    public static final String HAS_ROLE_USER = "hasRole('" + USER + "')";

    public static final String TEST = "test";

    public static final String HAS_ROLE_TEST = "hasRole('" + TEST + "')";

}
